package com.huika.dealontop.control.base.extend.impl;

import android.view.View;

import com.android.volley.Request;
import com.huika.dealontop.control.base.extend.RequestProtocol;
import com.huika.dealontop.control.base.extend.StatusPage;
import com.huika.dealontop.support.http.RequestResult;

/**
 * Author: Victor Wu
 * Email: victor-wu*foxmail.com
 * Time: 2015/11/12 14:06
 * Description: 状态页提供者
 */
public interface IStatusPageProvider<T> {

    RequestProtocol onLoadData();

    View onCreatePreview();

    View onCreateLoadingView();

    View onCreateSuccessView(T t);

    View onCreateEmptyView();

    View onCreateErrorView();

    StatusPage.StatusResult onCheckResult(RequestResult<T> requestResult);

    void onPagerStateChanged(int oldState, int newState);
}
